<template>
  <div id="homeindex">
    <el-container style="height: 100%;min-width: 1440px">
            <!-------------左侧导航区域START----------->
            <el-aside style="width: auto">
              <el-menu default-active="1-4-1" class="el-menu-vertical-demo" router @open="handleOpen" @close="handleClose" :collapse="isCollapse"    background-color="#545c64" text-color="#fff" active-text-color="#ffd04b">

                <el-menu-item index="dashindex">
                  <i class="el-icon-menu"></i>
                  <span slot="title">首页</span>
                </el-menu-item>

                <el-submenu index="1">
                  <template slot="title">
                    <i class="el-icon-location"></i>
                    <span slot="title">商户管理</span>
                  </template>

                  <el-menu-item-group>
                    <el-menu-item index="/index/userlist">商户列表</el-menu-item>
                    <el-menu-item index="/index/adduser">添加商户</el-menu-item>

                  </el-menu-item-group>
                </el-submenu>

                <el-menu-item index="/index/ds_list">
                  <i class="el-icon-service"></i>
                  <span slot="title">直播列表</span>
                </el-menu-item>



              </el-menu>
            </el-aside>
            <!-------------左侧导航区域END--------------->


      <el-container>
          <el-header>
            <el-radio-group v-model="isCollapse">
              <el-radio-button :label="false">展开</el-radio-button>
              <el-radio-button :label="true">收起</el-radio-button>
            </el-radio-group>
          </el-header>


        <!-------------主内容区域START-------------->
        <el-main>
          <router-view></router-view>
        </el-main>
        <!-------------主内容区域END---------------->
      </el-container>

    </el-container>
  </div>
</template>

<script>

  export default {
    data() {
      return {
        isCollapse: false,
        baseurl:this.$moment.config.baseurl,
        uid:'',
      };
    },
    methods: {
      handleOpen(key, keyPath) {
        console.log(key, keyPath);
      },
      handleClose(key, keyPath) {
        console.log(key, keyPath);
      },

    },
     mounted: function () {



    }
   }

</script>

<style>
  html,body{
    height: 100%;
    margin: 0;
    padding: 0;
  }
  #homeindex{
    height: 100%;
  }
  .el-header, .el-footer {
    background-color: #e3e9e2;
    color: #333;
    line-height: 60px;
  }

  .el-aside {
    background-color: #545c64;
    color: #333;
    text-align: center;
    line-height: 200px;
  }

  .el-main {
    background-color: #f9f9f9;
    color: #333;

  }

  body > .el-container {
    margin-bottom: 40px;
  }

  .el-container:nth-child(5) .el-aside,
  .el-container:nth-child(6) .el-aside {
    line-height: 260px;
  }

  .el-container:nth-child(7) .el-aside {
    line-height: 320px;
  }
  .el-menu-vertical-demo:not(.el-menu--collapse) {
    width: 200px;
    min-height: 400px;
  }
  .el-radio-button__inner{
    padding: 5px 8px;
  }
</style>
